﻿using Rocket.Windows.Framework.Utilities;
using System.Windows.Forms;
using Rocket.Core;
namespace Rocket.Windows.Framework
{
    abstract partial class BaseGridView<H, V> : BaseControl, IFormGridView<V>
        where H : IHandler<V>
        where V : BaseObject
    {
        /// <summary> 
        /// Required designer variable.
        /// </summary>
        private System.ComponentModel.IContainer components = null;

        /// <summary> 
        /// Clean up any resources being used.
        /// </summary>
        /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
        protected override void Dispose(bool disposing)
        {
            if (disposing && (components != null))
            {
                components.Dispose();
            }
            base.Dispose(disposing);
        }

        #region Component Designer generated code

        /// <summary> 
        /// Required method for Designer support - do not modify 
        /// the contents of this method with the code editor.
        /// </summary>
        private void InitializeComponent()
        {
            System.Windows.Forms.DataGridViewCellStyle DataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
            System.Windows.Forms.DataGridViewCellStyle DataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle();
            System.Windows.Forms.DataGridViewCellStyle DataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle();
            System.Windows.Forms.DataGridViewCellStyle DataGridViewCellStyle4 = new System.Windows.Forms.DataGridViewCellStyle();
            this.DataGridViewPlusMain = new DataGridViewPlus<V>();
            this.groupBoxMain = new System.Windows.Forms.GroupBox();
            this.panel1 = new System.Windows.Forms.Panel();
            this.label1 = new System.Windows.Forms.Label();
            this.textBoxSearch = new System.Windows.Forms.TextBox();
            this.buttonRefresh = new System.Windows.Forms.Button();
            this.buttonSearch = new System.Windows.Forms.Button();
            ((System.ComponentModel.ISupportInitialize)(this.DataGridViewPlusMain)).BeginInit();
            this.groupBoxMain.SuspendLayout();
            this.panel1.SuspendLayout();
            this.SuspendLayout();
            // 
            // DataGridViewPlusMain
            // 
            this.DataGridViewPlusMain.AllowUserToAddRows = false;
            this.DataGridViewPlusMain.AllowUserToDeleteRows = false;
            this.DataGridViewPlusMain.AllowUserToOrderColumns = true;
            DataGridViewCellStyle1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(247)))), ((int)(((byte)(255)))), ((int)(((byte)(247)))));
            this.DataGridViewPlusMain.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle1;
            this.DataGridViewPlusMain.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.Fill;
            this.DataGridViewPlusMain.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
            this.DataGridViewPlusMain.ColumnHeadersBorderStyle = DataGridViewHeaderBorderStyle.None;
            DataGridViewCellStyle2.Alignment = DataGridViewContentAlignment.MiddleLeft;
            DataGridViewCellStyle2.BackColor = System.Drawing.SystemColors.Control;
            DataGridViewCellStyle2.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            DataGridViewCellStyle2.ForeColor = System.Drawing.SystemColors.WindowText;
            DataGridViewCellStyle2.SelectionBackColor = System.Drawing.SystemColors.Highlight;
            DataGridViewCellStyle2.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
            DataGridViewCellStyle2.WrapMode = DataGridViewTriState.True;
            this.DataGridViewPlusMain.ColumnHeadersDefaultCellStyle = DataGridViewCellStyle2;
            DataGridViewCellStyle3.Alignment = DataGridViewContentAlignment.MiddleLeft;
            DataGridViewCellStyle3.BackColor = System.Drawing.SystemColors.Window;
            DataGridViewCellStyle3.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            DataGridViewCellStyle3.ForeColor = System.Drawing.SystemColors.ControlText;
            DataGridViewCellStyle3.SelectionBackColor = System.Drawing.SystemColors.Highlight;
            DataGridViewCellStyle3.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
            DataGridViewCellStyle3.WrapMode = DataGridViewTriState.False;
            this.DataGridViewPlusMain.DefaultCellStyle = DataGridViewCellStyle3;
            this.DataGridViewPlusMain.Dock = System.Windows.Forms.DockStyle.Fill;
            this.DataGridViewPlusMain.Location = new System.Drawing.Point(10, 52);
            this.DataGridViewPlusMain.MinimumSize = new System.Drawing.Size(300, 70);
            this.DataGridViewPlusMain.MultiSelect = false;
            this.DataGridViewPlusMain.Name = "DataGridViewPlusMain";
            this.DataGridViewPlusMain.ReadOnly = true;
            this.DataGridViewPlusMain.RowHeadersBorderStyle = DataGridViewHeaderBorderStyle.None;
            DataGridViewCellStyle4.Alignment = DataGridViewContentAlignment.MiddleLeft;
            DataGridViewCellStyle4.BackColor = System.Drawing.SystemColors.Control;
            DataGridViewCellStyle4.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            DataGridViewCellStyle4.ForeColor = System.Drawing.SystemColors.WindowText;
            DataGridViewCellStyle4.SelectionBackColor = System.Drawing.SystemColors.Highlight;
            DataGridViewCellStyle4.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
            DataGridViewCellStyle4.WrapMode = DataGridViewTriState.True;
            this.DataGridViewPlusMain.RowHeadersDefaultCellStyle = DataGridViewCellStyle4;
            this.DataGridViewPlusMain.RowHeadersWidth = 20;
            this.DataGridViewPlusMain.RowTemplate.Height = 18;
            this.DataGridViewPlusMain.SelectionMode = DataGridViewSelectionMode.FullRowSelect;
            this.DataGridViewPlusMain.Size = new System.Drawing.Size(631, 160);
            this.DataGridViewPlusMain.TabIndex = 8;
            this.DataGridViewPlusMain.RowEnter += new System.Windows.Forms.DataGridViewCellEventHandler(this.DataGridViewPlusMain_RowEnter);
            this.DataGridViewPlusMain.CellEndEdit += new DataGridViewCellEventHandler(DataGridViewPlusMain_CellEndEdit);
            // 
            // groupBoxMain
            // 
            this.groupBoxMain.Controls.Add(this.DataGridViewPlusMain);
            this.groupBoxMain.Controls.Add(this.panel1);
            this.groupBoxMain.Dock = System.Windows.Forms.DockStyle.Fill;
            this.groupBoxMain.Location = new System.Drawing.Point(0, 0);
            this.groupBoxMain.Name = "groupBoxMain";
            this.groupBoxMain.Padding = new System.Windows.Forms.Padding(10);
            this.groupBoxMain.Size = new System.Drawing.Size(651, 222);
            this.groupBoxMain.TabIndex = 9;
            this.groupBoxMain.TabStop = false;
            this.groupBoxMain.Text = "Record List View";
            // 
            // panel1
            // 
            this.panel1.Controls.Add(this.buttonRefresh);
            this.panel1.Controls.Add(this.buttonSearch);
            this.panel1.Controls.Add(this.label1);
            this.panel1.Controls.Add(this.textBoxSearch);
            this.panel1.Dock = System.Windows.Forms.DockStyle.Top;
            this.panel1.Location = new System.Drawing.Point(10, 23);
            this.panel1.Name = "panel1";
            this.panel1.Size = new System.Drawing.Size(631, 29);
            this.panel1.TabIndex = 9;
            // 
            // label1
            // 
            this.label1.AutoSize = true;
            this.label1.Location = new System.Drawing.Point(3, 6);
            this.label1.Name = "label1";
            this.label1.Size = new System.Drawing.Size(41, 13);
            this.label1.TabIndex = 1;
            this.label1.Text = "Search";
            // 
            // textBoxSearch
            // 
            this.textBoxSearch.AcceptsReturn = true;
            this.textBoxSearch.Location = new System.Drawing.Point(50, 3);
            this.textBoxSearch.Name = "textBoxSearch";
            this.textBoxSearch.Size = new System.Drawing.Size(223, 20);
            this.textBoxSearch.TabIndex = 0;
            // 
            // buttonRefresh
            // 
            this.buttonRefresh.Image = global::Rocket.Windows.Framework.Properties.Resources.Refresh;
            this.buttonRefresh.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
            this.buttonRefresh.Location = new System.Drawing.Point(360, 1);
            this.buttonRefresh.Name = "buttonRefresh";
            this.buttonRefresh.Size = new System.Drawing.Size(75, 23);
            this.buttonRefresh.TabIndex = 3;
            this.buttonRefresh.Text = "Refresh";
            this.buttonRefresh.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
            this.buttonRefresh.UseVisualStyleBackColor = true;
            this.buttonRefresh.Click += new System.EventHandler(this.buttonRefresh_Click);
            // 
            // buttonSearch
            // 
            this.buttonSearch.Image = global::Rocket.Windows.Framework.Properties.Resources.search_glyph;
            this.buttonSearch.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
            this.buttonSearch.Location = new System.Drawing.Point(279, 1);
            this.buttonSearch.Name = "buttonSearch";
            this.buttonSearch.Size = new System.Drawing.Size(75, 23);
            this.buttonSearch.TabIndex = 2;
            this.buttonSearch.Text = "Search in the View";
            this.buttonSearch.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
            this.buttonSearch.UseVisualStyleBackColor = true;
            this.buttonSearch.Click += new System.EventHandler(this.buttonSearch_Click);
            // 
            // BaseGridView
            // 
            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
            this.Controls.Add(this.groupBoxMain);
            this.Name = "BaseGridView";
            this.Size = new System.Drawing.Size(651, 222);
            ((System.ComponentModel.ISupportInitialize)(this.DataGridViewPlusMain)).EndInit();
            this.groupBoxMain.ResumeLayout(false);
            this.panel1.ResumeLayout(false);
            this.panel1.PerformLayout();
            this.ResumeLayout(false);

        }

        #endregion

        private DataGridViewPlus<V> DataGridViewPlusMain;
        private System.Windows.Forms.GroupBox groupBoxMain;
        private System.Windows.Forms.Panel panel1;
        private System.Windows.Forms.Button buttonSearch;
        private System.Windows.Forms.Label label1;
        private System.Windows.Forms.TextBox textBoxSearch;
        private System.Windows.Forms.Button buttonRefresh;
    }
}
